// src/router.jsx
import { createBrowserRouter } from 'react-router-dom';

import App from '../App'

import HomeView from '../components/HomeView/HomeView'
import IndexView from '../components/IndexView/IndexView'
import MyView from '../components/MyView/MyView'
import SetView from '../components/SetView/SetView'

const router = createBrowserRouter([
  {
    path: '/',
    element:<App></App>,
    children:[
      {
        path: '/',
        element:<HomeView/>,
      },
      {
        path: '/index',
        element:<IndexView/>,
      },
      {
        path: '/my',
        element:<MyView/>,
      },
      {
        path: '/set',
        element:<SetView/>,
      },
    ]
  },
]);

export default router;